package edu.pku.sei.transformation.editor.views.figures;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.LineBorder;

import edu.pku.sei.transformation.editor.views.icons.IconsProvider;

public class ExpressionFigure extends Label {
	private LineBorder border = new LineBorder();

	public ExpressionFigure() {
//		this.setIcon(IconsProvider.getImage(IconsProvider.EXPRESSION_ICO));
		this.setFont(FontConstant.BODY_FONT);
		this.setBorder(border);
		border.setColor(ColorConstants.white);
	}

	public void setHighLight(boolean isHighLight) {
		if (isHighLight) {
			border.setColor(ColorConstants.red);
		} else {
			border.setColor(ColorConstants.white);
		}
	}
}
